package com.google.shop.product.vo.order;

//import org.apache.commons.configuration.tree.DefaultExpressionEngine;

/* loaded from: app.jar:BOOT-INF/classes/com/google/shop/product/vo/order/BuyerAddress.class */
public class BuyerAddress {
    private Integer id;
    private Integer buyerId;
    private String buyerReceiveDetailAddress;
    private String buyerReceiveTel;
    private String buyerReceiveName;
    private Integer buyerReceiveAreaCode;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setBuyerId(Integer buyerId) {
        this.buyerId = buyerId;
    }

    public void setBuyerReceiveDetailAddress(String buyerReceiveDetailAddress) {
        this.buyerReceiveDetailAddress = buyerReceiveDetailAddress;
    }

    public void setBuyerReceiveTel(String buyerReceiveTel) {
        this.buyerReceiveTel = buyerReceiveTel;
    }

    public void setBuyerReceiveName(String buyerReceiveName) {
        this.buyerReceiveName = buyerReceiveName;
    }

    public void setBuyerReceiveAreaCode(Integer buyerReceiveAreaCode) {
        this.buyerReceiveAreaCode = buyerReceiveAreaCode;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof BuyerAddress)) {
            return false;
        }
        BuyerAddress other = (BuyerAddress) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();
        Object other$id = other.getId();
        if (this$id == null) {
            if (other$id != null) {
                return false;
            }
        } else if (!this$id.equals(other$id)) {
            return false;
        }
        Object this$buyerId = getBuyerId();
        Object other$buyerId = other.getBuyerId();
        if (this$buyerId == null) {
            if (other$buyerId != null) {
                return false;
            }
        } else if (!this$buyerId.equals(other$buyerId)) {
            return false;
        }
        Object this$buyerReceiveAreaCode = getBuyerReceiveAreaCode();
        Object other$buyerReceiveAreaCode = other.getBuyerReceiveAreaCode();
        if (this$buyerReceiveAreaCode == null) {
            if (other$buyerReceiveAreaCode != null) {
                return false;
            }
        } else if (!this$buyerReceiveAreaCode.equals(other$buyerReceiveAreaCode)) {
            return false;
        }
        Object this$buyerReceiveDetailAddress = getBuyerReceiveDetailAddress();
        Object other$buyerReceiveDetailAddress = other.getBuyerReceiveDetailAddress();
        if (this$buyerReceiveDetailAddress == null) {
            if (other$buyerReceiveDetailAddress != null) {
                return false;
            }
        } else if (!this$buyerReceiveDetailAddress.equals(other$buyerReceiveDetailAddress)) {
            return false;
        }
        Object this$buyerReceiveTel = getBuyerReceiveTel();
        Object other$buyerReceiveTel = other.getBuyerReceiveTel();
        if (this$buyerReceiveTel == null) {
            if (other$buyerReceiveTel != null) {
                return false;
            }
        } else if (!this$buyerReceiveTel.equals(other$buyerReceiveTel)) {
            return false;
        }
        Object this$buyerReceiveName = getBuyerReceiveName();
        Object other$buyerReceiveName = other.getBuyerReceiveName();
        return this$buyerReceiveName == null ? other$buyerReceiveName == null : this$buyerReceiveName.equals(other$buyerReceiveName);
    }

    protected boolean canEqual(Object other) {
        return other instanceof BuyerAddress;
    }

    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $buyerId = getBuyerId();
        int result2 = (result * 59) + ($buyerId == null ? 43 : $buyerId.hashCode());
        Object $buyerReceiveAreaCode = getBuyerReceiveAreaCode();
        int result3 = (result2 * 59) + ($buyerReceiveAreaCode == null ? 43 : $buyerReceiveAreaCode.hashCode());
        Object $buyerReceiveDetailAddress = getBuyerReceiveDetailAddress();
        int result4 = (result3 * 59) + ($buyerReceiveDetailAddress == null ? 43 : $buyerReceiveDetailAddress.hashCode());
        Object $buyerReceiveTel = getBuyerReceiveTel();
        int result5 = (result4 * 59) + ($buyerReceiveTel == null ? 43 : $buyerReceiveTel.hashCode());
        Object $buyerReceiveName = getBuyerReceiveName();
        return (result5 * 59) + ($buyerReceiveName == null ? 43 : $buyerReceiveName.hashCode());
    }

//    public String toString() {
//        return "BuyerAddress(id=" + getId() + ", buyerId=" + getBuyerId() + ", buyerReceiveDetailAddress=" + getBuyerReceiveDetailAddress() + ", buyerReceiveTel=" + getBuyerReceiveTel() + ", buyerReceiveName=" + getBuyerReceiveName() + ", buyerReceiveAreaCode=" + getBuyerReceiveAreaCode() + DefaultExpressionEngine.DEFAULT_INDEX_END;
//    }

    public BuyerAddress(Integer id, Integer buyerId, String buyerReceiveDetailAddress, String buyerReceiveTel, String buyerReceiveName, Integer buyerReceiveAreaCode) {
        this.id = id;
        this.buyerId = buyerId;
        this.buyerReceiveDetailAddress = buyerReceiveDetailAddress;
        this.buyerReceiveTel = buyerReceiveTel;
        this.buyerReceiveName = buyerReceiveName;
        this.buyerReceiveAreaCode = buyerReceiveAreaCode;
    }

    public BuyerAddress() {
    }

    public Integer getId() {
        return this.id;
    }

    public Integer getBuyerId() {
        return this.buyerId;
    }

    public String getBuyerReceiveDetailAddress() {
        return this.buyerReceiveDetailAddress;
    }

    public String getBuyerReceiveTel() {
        return this.buyerReceiveTel;
    }

    public String getBuyerReceiveName() {
        return this.buyerReceiveName;
    }

    public Integer getBuyerReceiveAreaCode() {
        return this.buyerReceiveAreaCode;
    }
}
